// drawarea.h

#ifndef DRAWAREA_H
#define DRAWAREA_H

#include <QWidget>
#include <QImage>
#include <QColor>
#include <QPoint>
#include "coordconv.h"
#include "projectile.h"
#include "launcher.h"
#include "constants.h"


class DrawArea : public QWidget
{
    Q_OBJECT
public:
    explicit DrawArea(QWidget *parent = 0);

public slots:

protected:
    void paintEvent(QPaintEvent *);
//    void resizeEvent(QResizeEvent *event);

signals:

private:
    void resizeImage(QImage *image, const QSize &newSize);

    QImage image;

    class projectile *newprojectile;
    class launcher *newlauncher;

    int windowmaxx;
    int windowmaxy;
    QPoint ballorigin;
    int ballradius;


};

#endif // DRAWAREA_H
